package threaddemo;

public class Test {
	public static void main(String[] args) {
/*		MyThread mt1=new MyThread("线程1");
		MyThread mt2=new MyThread("线程2");
		mt1.start();
		mt2.start();
		int a=mt1.getPriority();
		System.out.println(a);*/
		MyRunable mr=new MyRunable();
		Thread th1=new Thread(mr);
		Thread th2=new Thread(mr);
		th1.start();
		th2.start();
	}
}
